AddLicenseRecord

SoftwareShield CheckPoint™ License Server > CheckPoint™ License Server Interfaces > CheckPoint_Webservice_References > AddLicenseRecord

## AddLicenseRecord

The AddLicenseRecord function will

###### Syntax

TRecordResponse * AddLicenseRecord( TCheckPointLicenseRecord * ALicenseRecord, BSTR ASessionID ) ;

###### Parameters

ALicenseRecord

[IN] This is a TCheckPointLicenseRecord class that contains the license information that is to be added to the CheckPoint Database. The fields of interest are:

- LicenseProjectFileNamePath- this should contain the file path to the license project relative to the deployed CheckPoint.DLL

ASessionID

[IN] This is the session ID of the logged in user.

###### Remarks

The License file path should be relative to the Checkpoint.DLL.

Example:

- Checkpoint is located on "C:\Checkpoint\Checkpoint.dll".

- The license project file is located at "C:\Checkpoint\licenseprojectfiles\yourprojectfile.LPJ".

- LicenseProjectFileNamePath would be "\licenseprojectfiles\yourprojectfile.LPJ"

Only CheckPoint administrators are allowed to use this function.

###### Return Value

Returns the custom class TRecordResponse. The fields of interest that is related to this method are:

- Success- This will return true if the function was successful, otherwise returns false

- PrimaryKeyValue- This is will contain the License ID that is assigned to the new user.

- ErrorMessage- If an error occurred, this field will contain the associated message to the error.

###### Function Information

Exposed By Interface: | "ICheckPointService"
Exposed In ISAPI DLL: | "checkpoint.dll"